package string;

public class ReplaceAllDemo {
    public static void main(String[] args) {
        //将当前字符串中满足正则表达式的部分替换为指定字符串
       String line ="abc123def456ghi789";
       //将数字部分替换为#####
        line =line.replaceAll("[0-9|b|e|h]+","**");
        System.out.println(line);
    }
}
